package com.ctgu.springshiro.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.util.Set;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Role{

    @NotNull
    private Integer id;

    private String roleName;

    // one to one
//    private Integer uid;

//    private User user;

    private Set<Permission> permissions;
}
